/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.etop.beans;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 项目表
 * @author Lin Duxiang
 */
@Entity
@Table(name="project")
public class Project implements Serializable {
    private int id;
    private String name;//项目名称
    private int isfinish;//是否已经完成
    private String description;//项目描述
    private Date start_time;
    private List<String> listOfLeaders;//不存入数据库
    private List<String> listOfMembers;
    private List<Pro_schedule> listOfSchedules;
    public Project() {
    }

    public Project(String name, int isfinish, String description,Date start_time) {
        this.name = name;
        this.isfinish = isfinish;
        this.description = description;
        this.start_time = start_time;
    }

    public Project(int id, String name, int isfinish, String description, Date start_time) {
        this.id = id;
        this.name = name;
        this.isfinish = isfinish;
        this.description = description;
        this.start_time = start_time;
    }
    
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIsfinish() {
        return isfinish;
    }

    public void setIsfinish(int isfinish) {
        this.isfinish = isfinish;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    @Transient
    public List<String> getListOfLeaders() {
        return listOfLeaders;
    }

    public void setListOfLeaders(List<String> listOfLeaders) {
        this.listOfLeaders = listOfLeaders;
    }
    @Transient
    public List<String> getListOfMembers() {
        return listOfMembers;
    }

    public void setListOfMembers(List<String> listOfMembers) {
        this.listOfMembers = listOfMembers;
    }
    @Transient
    public List<Pro_schedule> getListOfSchedules() {
        return listOfSchedules;
    }

    public void setListOfSchedules(List<Pro_schedule> listOfSchedules) {
        this.listOfSchedules = listOfSchedules;
    }

    @Override
    public String toString() {
        return "Project{" + "id=" + id + ", name=" + name + ", isfinish=" + isfinish + ", description=" + description + ", start_time=" + start_time + ", listOfLeaders=" + listOfLeaders + ", listOfMembers=" + listOfMembers + ", listOfSchedules=" + listOfSchedules + '}';
    }
    
}
